package com.agile.major.service;

import com.agile.major.domain.CommonCourseOption;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Service Interface for managing CommonCourseOption.
 */
public interface CommonCourseOptionService {

    /**
     * Save a commonCourseOption.
     *
     * @param commonCourseOption the entity to save
     * @return the persisted entity
     */
    CommonCourseOption save(CommonCourseOption commonCourseOption);

    /**
     *  Get all the commonCourseOptions.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<CommonCourseOption> findAll(Pageable pageable);

    /**
     *  Get the "id" commonCourseOption.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    CommonCourseOption findOne(Long id);

    /**
     *  Delete the "id" commonCourseOption.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);
    // 根据通识通修课的状态获取课程
    List<CommonCourseOption> getCoursesByoptionStatus(String optionStatus) throws Exception;
}
